/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-05-13 09:38:27
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-16 17:02:09
 */
import request from "@/utils/request.js";

// 操作记录
export const couponList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/list',
        params
    })
}
// 详情
export const couponDetail = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/select',
        params
    })
}

// - 新增/编辑
export const couponEdit = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/coupon/edit',
        data
    })
}
// - 上架/下架
export const couponChange = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/change',
        params
    })
}

// - 负责人是否为本人
export const isOneself = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/oneself',
        params
    })
}
// - 更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/changeDirector',
        params
    })
}
// - 是否可以审批
export const canAudit = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/canAudit',
        params
    })
}

// 通过/拒绝
export const audit = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/coupon/audit',
        data
    })
}
// 撤回
export const withdraw = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/withdraw',
        params
    })
}

// - 作废
export const annulled = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/annulled',
        params
    })
}
// - 审批流程
export const auditProcess = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/auditProcess',
        params
    })
}
// - 发放
export const grant = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/coupon/grant',
        data
    })
}

// 发放记录
export const record = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/record',
        params
    })
}

// 考试列表
export const shelfList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/shelfList',
        params
    })
}
// - 停用
export const disEnable = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/disEnable',
        params
    })
}
// - 统计
export const statistics = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/statistics',
        params
    })
}

// 批次回显
export const batchList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/coupon/batchList',
        params
    })
}

// 发放企业列表
export const showSpRelateC = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/binding/showSpRelateC',
        params
    })
}

// 发放个人列表
export const posalList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/binding/list',
        params
    })
}

